package com.luck.nacos.controller;

import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@RefreshScope
public class AController {

    @GetMapping("/a")
    public String test() {
        return "hello worlda";
    }
    @GetMapping("/b")
    public String test2() {
        return "hello worldb";
    }
}
